import request from '@/utils/request'

export function getSpecialistAll(pageNum,pageSize) {
  return request({
    url: `/course/getSpecialistAll/${pageNum}/${pageSize}`,
    method: 'post'
  })
}

export function delSpecialist(id) {
  return request({
    url: `/course/delSpecialist/${id}`,
    method: 'post'
  })
}

export function addSpecialist(data) {
  return request({
    url: `/course/addSpecialist`,
    method: 'post',
    data
  })
}
export function addCourse(data) {
  return request({
    url: `/course/addCourse`,
    method: 'post',
    data
  })
}

export function searchCourse(pageNum,pageSize) {
  return request({
    url: `/course/searchCourse/${pageNum}/${pageSize}`,
    method: 'post'
  })
}

export function addLive(data) {
  return request({
    url: `/course/addLive`,
    method: 'post',
    data
  })
}

export function getLiveUrlBySpecialistId(id) {
  return request({
    url: `/course/getLiveUrlBySpecialistId/${id}`,
    method: 'post'
  })
}
export function getLiveUrlByLivId(id) {
  return request({
    url: `/course/getLiveUrlByLivId/${id}`,
    method: 'post'
  })
}

export function finishLive(id) {
  return request({
    url: `/course/finishLive/${id}`,
    method: 'post'
  })
}
export function showLiveAll(pageNum,pageSize) {
  return request({
    url: `/course/showLiveAll/${pageNum}/${pageSize}`,
    method: 'post'
  })
}
export function seeReplay(specialistId) {
  return request({
    url: `/course/seeReplay/${specialistId}`,
    method: 'post'
  })
}


